pub mod build;
pub mod dump;
pub mod flow;
pub mod optim;
pub mod reload;
pub mod deadcode;
pub mod fetch;

use optim::*;

use crate::llvm::*;
use crate::config::*;

pub fn optimise(program: LLVMProgram) -> LLVMProgram{
    vprintln!("Optimising...\n");
    let program = eliminate_all(program);
    vprintln!("Finished\n");
    program
}

